<template>
  <div>
    <div class="brand">
      <div class="banner">
        <img :src="brand.list_pic_url" alt="" />
        <h2>{{ brand.name }}</h2>
      </div>
      <p>{{ brand.simple_desc }}</p>
    </div>
  </div>
</template>

<script>
import { GetBrand } from "@/request/api";
export default {
  data() {
    return {
      brand: "", //品牌信息
    };
  },
  created() {
    GetBrand({ id: this.$route.query.id }).then((res) => {
      let { brand } = res.data;
      this.brand = brand;
      console.log(res.data);
    });
  },
};
</script>

<style lang="less">
.banner {
  position: relative;
  img {
    width: 100%;
    display: block;
  }
  h2 {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    height: 0.3rem;
    line-height: 30px;
    margin: auto;
    font-size: 20px;
    text-decoration: underline;
    color: #fff;
  }
}
p {
  background: #fff;
  font-size: 0.18rem;
  text-align: center;
  padding: 0.2rem 0.1rem;
  line-height: 0.26rem;
  color: #666;
}
</style>